FROM registry.gitee-ai.local/base/iluvatar-corex:3.2.0-bi100
ADD install_full.sh /opt/install_full.sh
RUN bash /opt/install_full.sh
COPY nginx.conf /etc/nginx/nginx.conf
COPY dist /var/www/html/dist
COPY bigscreen /var/www/html/bigscreen
ENV TZ=Asia/Shanghai
ENV read_env=1
ENV ENV=dev.env
ENV run_upgrade=1
ENV upgrade_packages=akshare,ccxt
ENV run_web=1
ENV web_worker=4
ENV run_scheduler=0
ENV run_flower=0
ENV run_worker=1
ENV worker_concurrency=4
ENV worker_queue=default
ENV worker_process=prefork
RUN git clone https://gitee.com/xuwei95/ezdata.git /opt/ezdata
WORKDIR /opt/ezdata
RUN pip3 install -r /opt/ezdata/requirements.txt -i https://pypi.doubanio.com/simple --use-deprecated=legacy-resolver
RUN pip3 install -r /opt/ezdata/ezetl/requirements.txt -i https://pypi.doubanio.com/simple --use-deprecated=legacy-resolver
ADD init_m.sh /opt/ezdata/init_m.sh
ADD dev.env /opt/ezdata/dev.env
ADD llm_api_server.py /opt/llm_api_server.py
ADD requirements.txt /opt/requirements.txt
RUN pip3 install -r /opt/requirements.txt
RUN git pull
ENTRYPOINT ["bash", "init_m.sh"]